RGB and Color are equivalent functions. However, RGB is preferred in Basic syntax and Color is preferred in Crystal syntax.
RGB returns the color attribute as specified by the red, green and blue components.
To specify a custom color when writing a conditional formatting formula for the font or background color of a report field.
The following example is applicable to Basic syntax:
If CurrentFieldValue > 10000 Then
formula = RGB (150,230,150)
Else
formula = RGB (10,19,200)
End If
This formula formats a Number field to display in the color as specified by RGB (150,230,150) if its current value is greater than 10000, otherwise to display it in RGB (10,19,200).
| Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com |